<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head>
    <base th:href="@{/}">
    <meta charset="UTF-8">
    <title>修改病例</title>
    <link rel="stylesheet" href="css/bootstrap.min.css" />
    <script src="js/jquery.min.js"></script>
</head>

<body>
<div th:include="admin/header1"></div>
<main id="main">
    <section class="breadcrumbs">
        <div class="container">
            <div class="d-flex justify-content-between align-items-center">
                <ol>
                    <li><a href="#">首页</a></li>
                    <li><a href="#">编辑医生信息</a></li>
                </ol>
            </div>
        </div>
    </section>

<div class="container">
    <div class="panel panel-primary">
        <div class="panel-heading">
            <h3 class="panel-title">修改病例</h3>
        </div>
        <div class="panel-body">
            <form th:action="@{/admin/updateRecord}" method="post">
                <input type="hidden" name="id" th:value="${record.id}">
                <div class="form-group">
                    <label for="name">患者姓名:</label>
                    <input type="text" id="name" name="name" class="form-control" th:value="${record.name}" required>
                </div>
                <div class="form-group">
                    <label for="cno">身份证号:</label>
                    <input type="text" id="cno" name="cno" class="form-control" th:value="${record.cno}" required>
                </div>
                <div class="form-group">
                    <label for="detail">病情:</label>
                    <input type="text" id="detail" name="detail" class="form-control" th:value="${record.detail}" required>
                </div>
                <div class="form-group">
                    <label for="dname">就诊医生:</label>
                    <input type="text" id="dname" name="dname" class="form-control" th:value="${record.dname}" required>
                </div>
                <div class="form-group">
                    <label for="dname">诊断日期:</label>
                    <input type="date" class="form-control"
                           th:field="*{record.zdrq}"/>
                </div>
                <div class="form-group">
                    <button type="submit" class="btn btn-success">修改</button>
                </div>
            </form>
        </div>
    </div>
</div>
</main>
<script src="js/main.js"></script>
</body>

</html>